Skip to content

Instantly share code, notes, and snippets.

@PJUllrich
PJUllrich / audit.ex
Created May 12, 2026 10:58
The Prompts I use for finding Vulnerabilities in Elixir/Erlang projects
defmodule MyApp.Prompts.Audit do
@moduledoc """
Prompts for the audit pipeline. Two entry points:
* `audit_file/4` — embeds a single source file in the prompt and
runs `MyApp.CodingAgent` against it. Style is `:simple` or
`:deep`; the executor picks based on `audit.strategy`.
* `audit_directory/2` — whole-package audit. Spawns the agent with
`:cwd` set to the source dir so it can use Read/Grep/Bash.
"""
@chroline
chroline / instagram-follower-following.js
Created March 11, 2024 05:59 — forked from abir-taheer/instagram-follower-following.js
"This is our community, this is our family, these are our friends." https://www.youtube.com/watch?v=gk7iWgCk14U&t=425s
if (window.location.origin !== "https://www.instagram.com") {
window.alert(
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.",
);
window.location.href = "https://www.instagram.com";
console.clear();
}
const fetchOptions = {
credentials: "include",
@yifanwang-yet
yifanwang-yet / libretv-sources.json
Last active November 1, 2026 11:29
LibreTV 点播源+直播源订阅 (2026-10-13 实测)
{
"name": "yifan 精选源列表 (2026-10-13 实测可用)",
"version": 2,
"sources": [
{ "name": "暴风资源", "url": "https://bfzyapi.com/api.php/provide/vod", "isAdult": false },
{ "name": "非凡资源", "url": "https://cj.ffzyapi.com/api.php/provide/vod", "isAdult": false },
{ "name": "量子资源", "url": "https://cj.lziapi.com/api.php/provide/vod", "isAdult": false },
{ "name": "无尽资源", "url": "https://api.wujinapi.me/api.php/provide/vod", "isAdult": false },
{ "name": "优酷资源", "url": "https://api.ukuapi88.com/api.php/provide/vod", "isAdult": false },
{ "name": "光速资源", "url": "https://api.guangsuapi.com/api.php/provide/vod", "isAdult": false },
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active November 1, 2026 11:27
Conventional Commits Cheatsheet

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

Visual Studio 2026 18.x
Professional: NVTDK-QB8J9-M28GR-92BPC-BTHXK
Enterprise: VYGRN-WPR22-HG4X3-692BF-QGT2V
Product Year Version Product Keys
Visual Studio 2022 2021 17.x
Professional: TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Enterprise: VHF9H-NXBBB-638P6-6JHCY-88JWH
Visual Studio 2019 2019 16.x
@nskforward
nskforward / mikrotik-vless.md
Last active November 1, 2026 11:09
Настройка VPN-туннеля VLESS на роутере MikroTik

Настройка VPN (VLESS + Reality) на роутере Mikrotik

Также рекомендую ознакомиться с моим лёгким решением для включения поддержки протокола AmneziaWG 3.1 на роутерах Mikrotik: https://github.com/nskforward/mikwg

💡 Про производительность. AmneziaWG в mikwg использует штатный kernel WireGuard роутера — шифрованием занимается ядро RouterOS. VLESS же из этой инструкции работает в userspace-контейнере (mihomo + TUN-интерфейс), и весь трафик проходит через него. По замерам на живом роутере нагрузка на CPU у mihomo примерно вдвое выше, чем у mikwg. На слабых моделях это заметно, поэтому если вам достаточно AmneziaWG — сначала посмотрите в сторону mikwg.

Обновление от 04.10.2026

Инструкция предполагает, что ваш роутер сброшен до заводских настроек, а домашняя сеть имеет адрес 192.168.88.0/24. Если у вас другая подсеть — замените 192.168.88.0/24 на свою во всех правилах ниже.

Инструкция проверена на RouterOS версии 7.24.5.

@Jason-Clark-FG
Jason-Clark-FG / Uninstall-VMwareTools.ps1
Last active November 1, 2026 11:09
A quick update to the gist at https://gist.github.com/KGHague/2c562ee88492c1c0c0eac1b3ae0fecd8 to incorporate the additional suggestions
<#
.SYNOPSIS
Uninstalls VMware Tools using the MSI installer method.
.DESCRIPTION
This script modifies the VMware Tools MSI database to bypass environment checks
that prevent uninstallation on non-VMware systems, then performs an uninstall.
.PARAMETER Uninstall
Actually perform the uninstall. Without this switch, the script runs in dry-run mode.
.PARAMETER Force
Bypass the confirmation prompt and proceed with uninstallation automatically.
@AskinNet
AskinNet / bash-guide-1.md
Created May 7, 2024 05:55 — forked from Titiaiev/bash-guide-1.md
шпаргалка по написанию bash скриптов, по ссылке - оригинальная статья на хабре

Бесплатная книга-сайт на русском, полный гайд
Advanced Bash-Scripting Guide

Введение

BASH — Bourne-Again SHell (что может переводится как «перерожденный шел», или «Снова шел Борна(создатель sh)»), самый популярный командный интерпретатор в юниксоподобных системах, в особенности в GNU/Linux. Ниже приведу ряд встроенных команд, которые мы будем использовать для создания своих скриптов.

>break выход из цикла for, while или until